<template>
	<view class="advise">
		<view class="from">
			<u-form :model="form" ref="uForm">
				<u-form-item >
					<view class="tousu">
						<view class="title">建议</view>
						<view>
							<textarea v-model="form.content" cols="30" rows="10" class="textarea" placeholder="请输入建议"></textarea>
						</view>
					</view>
				</u-form-item>
				<u-form-item label="联系方式" label-width="150">
					<u-input v-model="form.phone" placeholder="请输入电话号码" :clearable="false" />
				</u-form-item>
				<u-form-item label="姓名" label-width="150">
					<u-input v-model="form.name" placeholder="请输入姓名" :clearable="false"/>
				</u-form-item>
			</u-form>
		</view>
		<!--  -->
		<view class="img">
			<view class="title">
				添加照片
			</view>
			<view class="image">
				<u-upload width="300" height="300" :auto-upload="false" ref="uUpload" :action="action"></u-upload>
			</view>
		</view>
		<!--  -->
		<view class="btns">
			<view class="btn">
				<u-button type="primary">提交</u-button>
			</view>
		</view>

	</view>
</template>

<script>
	import {
		checkOpenGPSServiceByAndroid
	} from "@/common/index.js"
	export default {
		data() {
			return {
				data: [],
				form: {
					content: "",
					phone: null,
					name: "",
				},
				action: "http://api1.zelfly.com/carManager"

			}
		},
		async created() {

		},
		destroyed() {

		},
		methods: {

		}
	}
</script>

<style lang="scss">
.from{
	padding: 0 30rpx;
	background-color: white;

	.tousu{
		width: 100%;
		.title{
			font-weight: 550;
			font-size: 35rpx;
			padding-left: 5rpx;

		}
		.textarea{
			height: 300rpx;
			// width: 500rpx;
			width: 100%;
			box-sizing: border-box;
			border-radius: 20rpx;
			padding: 30rpx 20rpx;
			background-color: #F8F8F8;
			// margin-right: 0 !important;
		}
		
	}
}

.img{
	padding: 20rpx 30rpx;
	background-color: white;
	margin-top: 30rpx;
	.title{
		font-size: 30rpx;
		font-weight: 550;
	}
	.image{
		padding: 30rpx 0;
	}
}
.btns{
	// height: 150rpx;
	background-color: white;
	padding: 25rpx 30rpx;
}
</style>
